import java.util.Date;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class Pilote
{  
   private int age;
   public int getAge()
   {
       return this.age;
   }
   public void setAge(int inAge)
   {
       if (inAge > 0)
            this.age = inAge;
   }
   
   private String email;
   public String getEmail()
   {
       return this.email;
   }
   public void setEmail(String inEmail)
   {
       Pattern p = Pattern.compile(".+@.+\\.[a-z]+");
       Matcher m = p.matcher(inEmail);
       if (m.matches())
            this.email = inEmail;
   }
   private String matricule;
   private String name;
   private String firstname;
   private String tel;
   private Date hiringDate;
  
   public Pilote()
   {
        
   }

}